﻿#ifndef GRAPHICS32VALVEITEM_H
#define GRAPHICS32VALVEITEM_H

#include "GraphicsAirValveItem.h"
#include <QPoint>

class Graphics32ValveItem : public GraphicsAirValveItem
{
public:
    Graphics32ValveItem();
    QPointF keyPoint(int i) override;
    QRectF boundingRect() const override;
public slots:
    void setEnable(bool enable);
    void setDir(enum Direction dir);
private:
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
private:
    QPoint m_keyPoints[3];

    int m_shift = 50;

    int m_partWidth; //一个图元的宽度
    int m_partHeight; // 一个图元的高度
};

#endif // GRAPHICS32VALVEITEM_H
